CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
PROJECT(AzBomber)

SET(CMAKE_BUILD_TYPE Debug)
SET(CMAKE_CXX_FLAGS "-g -Wall")

# QT4 Handling
FIND_PACKAGE(Qt4 REQUIRED)

SET(QT_USE_QTOPENGL TRUE)
INCLUDE(${QT_USE_FILE})


set(Boost_ADDITIONAL_VERSIONS "1.46.1" )
 
 
link_directories ( ${Boost_LIBRARY_DIRS} )
include_directories ( ${Boost_INCLUDE_DIRS} )


include_directories(./include)

SET( HWQ_Qt4_SRC
	include/OGLWindow.h
	include/UIManager.h	
)


QT4_WRAP_CPP(HWQ_MOC_CPP ${HWQ_Qt4_SRC})

file(
	GLOB_RECURSE
	HWQ_SRC
	src/*
	include/*
)


SET( HWQ_LIB
	${QT_LIBRARIES}
)

ADD_EXECUTABLE( AzBomber main.cpp ${HWQ_SRC} ${HWQ_MOC_CPP})
TARGET_LINK_LIBRARIES( AzBomber ${QT_LIBRARIES} ${HWQ_LIB} ${Boost_LIBRARIES} GLU)
INSTALL_TARGETS( /bin AzBomber)
